﻿Public Class List
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Request.Params("tagBody") = Nothing Or Request.Params("tagBody") = "" Then
            SqlDataSource1.SelectCommand = "SELECT * FROM question"

        Else
            SqlDataSource1.SelectCommand = "SELECT DISTINCT [questionText], [userID], [questionID], [examBoardID], [examTypeID], [SubjectID], [pointValue], [author], [attachment], [answer] FROM [questionTagView] WHERE ([tagBody] = ?)"
        End If

        If User.IsInRole("superuser") Then
            ph_SuperUsers.Visible = True
        Else
            ph_SuperUsers.Visible = False
        End If

    End Sub

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.SelectedIndexChanged

    End Sub
End Class